#!/bin/csh

# This job script should be copied and modified by Scaling.pl

# specify project number, if necessary
###PBS -A ...

#PBS -V
#PBS -N test
#PBS -j oe

# The number of cores (=size) should be a multiple of 16
#PBS -l walltime=0:30:00
#PBS -l size=16
#PBS -l gres=widow2%widow3

cd $PBS_O_WORKDIR

# run CRASH with aprun -n ... or aprun -mode VN
aprun -n $PBS_NNODES ./CRASH.exe

# load opacity tables in next run(s)
perl -pi -e 's/^LOOKUPTABLE/\#LOOKUPTABLE/; s/save/load/' PARAM.in
